USE [OHNEW]
GO

/****** Object:  Table [dbo].[P_RoleRight]    Script Date: 11/16/2012 18:29:56 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

SET ANSI_PADDING ON
GO

CREATE TABLE [dbo].[P_RoleRight](
	[ID] [uniqueidentifier] NOT NULL,
	[MainID] [uniqueidentifier] NOT NULL,
	[RightID] [varchar](50) NOT NULL,
	[RightValue] [int] NOT NULL,
 CONSTRAINT [PK_P_RoleRight] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]

GO

SET ANSI_PADDING OFF
GO

ALTER TABLE [dbo].[P_RoleRight] ADD  DEFAULT ((-1)) FOR [RightValue]
GO


